package qt.service;


import ht.domain.Page;
import qt.domain.*;

import java.util.List;

/**
 * Created by charmyyy on 2017/10/22.
 */
public interface StationSer {
    //all page
    public DataTable<StationShow> getDataTableStation(int draw, int start, int limit);

    //addvcd
    public DataTable<StationShow> getDataTableStationByAddvcd(int draw, int start, int limit, String addvcd);

    //gldw
    public DataTable<StationShow> getDataTableStationByGldw(int draw, int start, int limit, String admagcd);
    //stcd stnm
    public DataTable<StationShow> getDataTableStationByNmOrId(int draw, int start, int limit, String nmOrid);

    public StationShow getStation(String stcd);

    public List<Station> getAllStationIdAndNm();

    public int getLastStationCountByAddvcd(String addvcd);

    public int addStation(Station h);

    public int upptStation(Station h);

    public int deleStation(String stcd);

    public List<Station> getAllStation();

    public List<Station> getStationByAddvcd(String stcd);

    public List<Station> getStationByGldw(String gldw);

    public List<CheckBox> getScxmCheckBoxForAdd();

    public List<CheckBox> getScxmCheckBoxForUpdate(String stcd);

    //Lskzmdygx处理

    public DataTable<LskzmdygxShow> getDataTableLskzmdygx(int draw, int start, int limit);

    public DataTable<LskzmdygxShow> getDataTableLskzmdygxByNmOrId(int draw, int start, int limit,String nmOrid);

    public DataTable<LskzmdygxShow> getDataTableLskzmdygxByGldw(int draw, int start, int limit,String admagcd);

    public DataTable<LskzmdygxShow> getDataTableLskzmdygxByAddvcd(int draw, int start, int limit,String nodeId);

    public int addLskzmdygx(Lskzmdygx h);

    public int upptLskzmdygx(Lskzmdygx h);

    public int deleLskzmdygx(String stcd);

    public LskzmdygxShow getLskzmadygxById(String stcd);

    //分断面处理
    Page<Fdm> getAllFdm(String stcd);

    public int addFdm(Fdm h,String stcd);

    public int upptFdm(Fdm h,String stcd);

    public int deleFdm(String stcd);

    public int checkFdm(String fdmid,String stcd);


    //Czglgx处理

    public DataTable<CzglgxShow> getDataTableCzglgx(int draw, int start, int limit);

    public DataTable<CzglgxShow> getDataTableCzglgxByNmOrId(int draw, int start, int limit,String nmOrId);

    public int addCzglgx(Czglgx czglgx);

    public int upptCzglgx(Czglgx czglgx);

    public int delCzglgx(String stcd,String pstcd);

    public CzglgxShow getCzglgxById(String stcd,String pstcd);

    Page<CzglgxShow> getAllCzglgx(String stcd);

    int getCzglgxSame(String stcd,String pstcd);

    //sskzmdygx处理
    public DataTable<SskzmdygxShow> getDataTableSskzmdygx(int draw, int start, int limit);

    public DataTable<SskzmdygxShow> getDataTableSskzmdygxByGldw(int draw, int start, int limit,String admagcd);

    public DataTable<SskzmdygxShow> getDataTableSskzmdygxByAddvcd(int draw, int start, int limit,String addvcd);

    public DataTable<SskzmdygxShow> getDataTableSskzmdygxByNm(int draw, int start, int limit,String nm);

    public SskzmdygxShow getSskzmdygxById(String stcd,String tycd,String obitcd);

    public int addSskzmdygx(Sskzmdygx h);

    public int upptSskzmdygx(Sskzmdygx h);

    public int deleSskzmdygx(String stcd,String tycd,String obitcd);

    public int getSame(String sscd);

    public Page<SskzmdygxShow> getAllSskzm(String stcd);
    //all page
    /*
    public DataTable<> getDataTable(int draw, int start, int limit);

    public DataTable<> getDataTable ByNmOrId(int draw, int start, int limit,String nmOrid);

    public int add( h);

    public int uppt( h);

    public int dele(String stcd);
     */

}
